﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameSPK.DAO
{
    public class CuocThiDAO
    {
        public static General getCuocThiChon()
        {
            DBTroChoiDataContext db = new DBTroChoiDataContext();
            try
            {
                var general = (from ge in db.Generals
                               where ge.Chon == true
                               select ge).Single();

                return general;
            }
            catch
            {
                return null;
            }
        }

    }
}
